#include "GameManager.h"
GameManager* GameManager::_pIntance = NULL;
GameManager* GameManager::Intance()
{
	if(!_pIntance)
	{
		_pIntance = new GameManager;
	}
	return _pIntance;
}

float GameManager::getScaleX()
{
	Size frameSize  = Director::getInstance()->getOpenGLView()->getFrameSize();
	return (float)(frameSize.width/RESOURCE_WIDTH);
}
float GameManager::getScaleY()
{
	Size frameSize  = Director::getInstance()->getOpenGLView()->getFrameSize();
	return (float)(frameSize.height/RESOURCE_HEIGHT);
}
Size GameManager::getWinsize()
{
	return (Director::getInstance()->getOpenGLView()->getFrameSize());
}

